import Vue from 'vue'

import {
  RECEIVE_CURRENT_USER,
  RECEIVE_ADMIN_LIST,
  RECEIVE_CONTENT_LIST

} from './mutation-types'

export default {
  [RECEIVE_CURRENT_USER](state, {currentUser}) {
    state.currentUSer = currentUser
  },

  [RECEIVE_ADMIN_LIST](state, {adminList}) {
    state.adminList = adminList
  },

  [RECEIVE_CONTENT_LIST](state, {contentList}) {
    state.contentList = contentList
  }
}
